<!doctype html>
<html lang="{idioma_js}">
    <head>
        <title>CMS 2.0+ | {titulo} | Link Nacional</title>
        {include_header_view}
        <script>
            $(window).load(function(){
                $('.formulario').wl_Form({
                    dataType: 'json',
                    onSuccess: function (data) {
                        if(data.cod == 999){
                            //$.wl_Alert(data.msg,'success','#content');
                            $.msg(data.msg,{header:data.header,live:10000});
                        } else {
                            //$.wl_Alert(data.msg,'warning','#content');
                            $.msg(data.msg,{header:data.header,live:10000});
                        }
                    }
                });
            });    
        </script>
    </head>
    <body>

        {include_body_header_view}
        {include_body_menu_left_view}


        <section id="content">

            <div class="g12">
                <h1>{permissao_titulo} <span><a href="{base_cms}{link_index}" class="small">{lang_config}</a></span></h1>
                <!--button id="atualizar" class="i_play icon small fr">{lang_submit}</button-->
                <p>{permissao_descricao_titulo} <a href="{base_cms}{link_user_change}/{id}" title="Editar Usuário">{username}</a></p>

            </div>	

            <div class="g12 widgets">

                <div class="widget" id="widget_tabs">
                    <h3 class="handle">{lang_adicionar_permissao} <a href="{base_cms}{link_user_change}/{id}" title="Editar Usuário">{email}</a></h3>
                    <div class="tab">
                        <ul>
                            {tabs}
                            <li><a href="#tabs-{modulo_id}">{nome}</a></li>
                            {/tabs}
                        </ul>

                        {divs}
                        <div id="tabs-{modulo_id}">
                            <form class="formulario" name="form_configuracao_{modulo_id}" id="form_configuracao_{modulo_id}" action="{base_cms}{link_user_save}/{id}/{modulo_id}" method="post">
                                <fieldset>
                                    <section>
                                        <label for="multiselect[{modulo_id}]">{lang_permissoes}<br><span>{lang_para_adicionar}</span></label>
                                        <div>
                                            <select name="multiselect[{modulo_id}]" id="multiselect" multiple="" style="display: none; ">
                                                {seq1}
                                                <option value="{value}" selected="selected">{lang_nome}</option>
                                                {/seq1}
                                                {seq2}
                                                <option value="{value}">{lang_nome}</option>
                                                {/seq2}
                                            </select>
                                        </div>
                                    </section>
                                    <section>
                                        <div>
                                            <button class="submit i_play icon small fr" name="sttings_submit_{modulo_id}" id="sttings_submit_{modulo_id}">{lang_submit}</button>
                                        </div>
                                    </section>
                                </fieldset>
                            </form>
                        </div>
                        {/divs}

                        <div class="clear"></div>
                    </div>
                </div>

            </div>
        </section>
        <footer>
            {include_footer_view}
        </footer>
    </body>
</html>